import React, { useContext } from 'react'
import { RouterContext } from '..'

const UseHistory = () => {
  const context = useContext(RouterContext)
  // 把 useHistory 返回出去
  return context
}

export default UseHistory
